package com.wyl.mybatis.page;

import java.util.List;

/**
 * @Description
 * @Author WuYiLong
 * @Date 2024/3/13 13:48
 */
public class Page<T>  {

    private Integer currentPage = 1;
    private Integer pageSize = 10;
    private Integer total;
    private List<T> records;

    public Page(Integer currentPage,Integer pageSize) {
        this.currentPage = currentPage;
        this.pageSize = pageSize;
    }
    public Page(){};

    public Integer getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(Integer currentPage) {
        this.currentPage = currentPage;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }
}
